﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="configshop.aspx.cs"
    Inherits="map.manage.configshop" Title="商铺装修" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <link href="../tabcontent.css" rel="stylesheet" type="text/css" />

    <script src="../js/tabcontent.js" type="text/javascript"></script>
<script type="text/javascript">
   
    function getElement(aID)
    {

        return (document.getElementById) ?
            document.getElementById(aID) : document.all[aID];
    }

    function getIFrameDocument(aID){
        var rv = null;
        var frame=getElement(aID);
        // if contentDocument exists, W3C compliant (e.g. Mozilla)
        if (frame.contentDocument)
            rv = frame.contentDocument;
        else // bad IE  ;)
            rv = document.frames[aID].document;
        return rv;
    }

    function adjustMyFrameHeight(frameid)
    {
        var frame = getElement(frameid);
    //alert(frame.contentDocument.body.offsetHeight);   
        var frameDoc = getIFrameDocument(frameid);
        frame.height = frameDoc.body.offsetHeight;
        
    }
    

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


    <ul id="flowertabs" class="shadetabs">
        <li><a href="#" rel="tcontent1" class="selected">基本设置</a></li>
        <li><a href="#" rel="tcontent2">选择风格</a></li>
        <li><a href="#" rel="tcontent3">页面布局</a></li>
        <li><a href="#" rel="tcontent4">店铺信息</a></li>
        <li><a href="../taobao/default.aspx" target="_blank">首页</a></li>
    </ul>

 
    <div style="border: 1px solid gray; width: 450px; margin-bottom: 1em; padding: 10px">
        <div id="tcontent1" class="tabcontent">
            Tab content 1 here<br />
            Tab content 1 here<br />
        </div>
        <div id="tcontent2" class="tabcontent">
            Tab content 2 here<br />
            Tab content 2 here<br />
        </div>
        <div id="tcontent3" class="tabcontent">
            <asp:RadioButtonList ID="RadioButtonList1" runat="server" 
                onselectedindexchanged="RadioButtonList1_SelectedIndexChanged" 
                RepeatDirection="Horizontal">
                <asp:ListItem>首页</asp:ListItem>
                <asp:ListItem>分类页</asp:ListItem>
                <asp:ListItem>商品页</asp:ListItem>
                <asp:ListItem>内容页</asp:ListItem>
            </asp:RadioButtonList>
            <br />
            <asp:RadioButtonList ID="RadioButtonList2" runat="server" 
                onselectedindexchanged="RadioButtonList2_SelectedIndexChanged" 
                RepeatDirection="Horizontal">
                <asp:ListItem>三栏式</asp:ListItem>
                <asp:ListItem>左边框</asp:ListItem>
                <asp:ListItem>右边框</asp:ListItem>
                <asp:ListItem>无边框</asp:ListItem>
            </asp:RadioButtonList>
           
        </div>
        <div id="tcontent4" class="tabcontent">
            Tab content 4 here<br />
            Tab content 4 here<br />
        </div>
    </div>

    <script type="text/javascript">
        var myflowers=new ddtabcontent("flowertabs") //enter ID of Tab Container
        myflowers.setpersist(true) //toogle persistence of the tabs' state
        myflowers.setselectedClassTarget("link") //"link" or "linkparent"
        myflowers.init()
    </script>
    <hr />

<iframe id='myFrame' frameborder=0 scrolling=no width=100%  src="../manage/configshop_inner1.aspx"
    onload='adjustMyFrameHeight("myFrame");'>
</iframe>
</asp:Content>
